package com.fbote.usr.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.fbote.base.IBaseService;

public class UserAction extends DispatchAction {
	IBaseService service ; 
	
	public IBaseService getService() {
		return service;
	}

	public void setService(IBaseService service) {
		this.service = service;
	}

	public ActionForward login(
			ActionMapping mapping,
			ActionForm form,
			HttpServletRequest request,
			HttpServletResponse response
	){
		
		String username = request.getParameter("username");
		String password = request.getParameter("password");
		
		System.out.println("username:" + username + "    password:"  + password);
		
		return mapping.findForward("index");
	}

}
